<!--
 * @Descripttion: 
 * @version: 
 * @Author: EayCome
 * @Date: 2021-02-10 00:02:15
 * @LastEditors: EayCome
 * @LastEditTime: 2021-02-10 00:06:03
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获取数组某些元素</title>
    <script src="drop.js"></script>
</head>

<body>
    <script>
        // console.log(drop([1, 3, 5, 7, 9, 11], 2))
        console.log(dropRight([1, 3, 5, 7, 9, 11], 2))
    </script>
</body>

</html>